package cn.kgc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.kgc.dao.HappyDao;

@Controller
public class UserController {
	@Autowired
	private HappyDao happyDao;
	@ResponseBody
	@RequestMapping("/count")
	public String updateHappyByConut(){
		happyDao.updateHappyByConut();
		return "1";
	}
	@RequestMapping("/jian")
	public String updateHappyByJian(){
		happyDao.updateHappyByJian();
		return "2";
	}
	/*@RequestMapping("/")
	public String tohappy(){
		System.out.println("11");
		return "BrithdayCake";
	}*/
}
